package com.peanut.baby.http;

import com.peanut.baby.BuildConfig;

/**
 * Created by anonymouslystudio on 2017/6/6.
 */

public final class HttpConfig {
    public static final String HOST_PROD = "https://baby.huashengbeiyun.com";
    public static final String HOST_TEST = "http://xcx.zk-cloud.com";
    public static final String HOST_LOCAL = "http://192.168.1.36:8080";

    public static String  BASE_URL               = HOST_PROD;
    public static String  LIVE_SHARE_URL         = "/baby/index.html#/shareLiveDoc/";
    public static String  QA_SHARE_URL           = "/baby/index.html#/shareAskDetail/";
    public static String  BBS_SHARE_URL          = "/baby/index.html#/shareCard/";

//
//    public static String  LIVE_SHARE_URL_v2         = "/baby/index.html?userId=keyword#/shareLiveDoc/";
//    public static String  QA_SHARE_URL_v2           = "/baby/index.html?userId=keyword#/shareAskDetail/";
//    public static String  BBS_SHARE_URL_v2          = "/baby/index.html?userId=keyword#/shareCard/";

    public static String  TERMS_POLICY_URL       = HOST_PROD + "/baby/index.html#/shareServerPromise";
    public static String  PRIVACY_POLICY_URL     = HOST_PROD + "/baby/index.html#/privacy_agreement";
    public static String  POLICYY_URL            = HOST_PROD + "/baby/index.html#/pp_agreement";
    public static String  WIKI_URL               = HOST_PROD + "/baike.html";
    public static String  POINT_RULE_URL         = HOST_PROD + "/baby/index.html#/sharePointPromise";
    //合伙人 H5地址
    public static String  PARTNER_INTRO_URL      = "https://mp.weixin.qq.com/s/0bbvd_YeT2Fn7YzTNzdQlw";
    public static String  PARTNER_JOIN_URL       = "https://weidian.com/?userid=264461221&vtid=Z_3qeIsYtfu6anQAIFGhjQmQRlntZQ-9983";

    //微店地址
    public static final String  WEIDIAN_URL      = "https://weidian.com/?userid=264461221&spider_token=fbea&from=999999";

    public static final String  CACHE_POLICY     = "";
    public static final long    TIME_OUT         = 3000L;


    static {
        if(BuildConfig.DEBUG){
            BASE_URL = HOST_TEST;
        }
        LIVE_SHARE_URL      = BASE_URL   + LIVE_SHARE_URL;
        QA_SHARE_URL        = BASE_URL   + QA_SHARE_URL;
        BBS_SHARE_URL       = BASE_URL   + BBS_SHARE_URL;
    }
}
